<admintpl file="header" />


<link href="__TMPL__Public/assets/css/infomation.css" rel="stylesheet" />
<style type="text/css">
    table tr th{ text-align: center; }
</style>
</head>
<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('SubcontractorQualification/index')}">分包单位资格报审表管理</a></li>
            <li class="active"><a href="{:U('SubcontractorQualification/add')}">新增分包单位资格报审</a></li>
        </ul>  
        <section class="tab-pane active fade in" id="access">
            <div class="row">
                <div class="col-xs-12 col-md-12 col-lg-12">
                    <div class="panel panel-info">

                        <div class="panel-body">
                            <form method="post" class="form-horizontal " action="{:U('SubcontractorQualification/add_post')}">
                                <input type="hidden" name="audit_level" value="2" >
                                <div class="row tg-header">
                                    <div class="col-md-12 text-center">
                                        <h3>分包单位资格报审表</h3>
                                        <hr />
                                    </div>

                                    <div class="col-md-12">
                                        <p class="tg-to"><label>工程名称:</label><input type="text" class="input-xt input-deptname"  disabled value="{$job_name}" readonly/></p>

                                        <p class="pull-right tg-serialnum"><label>编号:</label><input class="input-xt" name="code" required/></p>
                                    </div>
                                </div>

                                <table class="table table-bordered">
                                    <tr>
                                        <td style="border-right:none !important;">

                                            <p>
                                                <label>致：<input type="text" class="input-xt input-deptname"  name="supervisory_department" readonly value="浙江泛华工程监理有限公司"/>（项目监理机构）:</label>
                                            </p>
                                            <p class="indent20">
                                                经考察，我方认为拟选择的<input type="text" class="input-xt" name="subcontractor" required />（分包单位）具有承担下列工程的施工或安装资质和能力，可以保证本工程按施工合同第<input type="text" class="input-xt input-num" name="contract_terms" required/>条款的约定进行施工或安装。请予以审查。
                                            </p>
                                            <p>
                                            <table class="table table-hover table-bordered" width="100%" height="240">
                                                <tr>
                                                    <th>分包工程名称（部位）</th>
                                                    <th>分包工程量</th>
                                                    <th>分包工程合同额</th>
                                                </tr>
                                                <tr>
                                                    <td><input type="text" name="subcontract_position[]" class="input-x0" /></td>
                                                    <td><input type="text" name="quantity[]" class="input-x0"/></td>
                                                    <td><input type="text" name="contract_amount[]" class="input-x0"/></td>
                                                </tr>
                                                <tr>
                                                    <td><input type="text" name="subcontract_position[]" class="input-x0" /></td>
                                                    <td><input type="text" name="quantity[]" class="input-x0"/></td>
                                                    <td><input type="text" name="contract_amount[]" class="input-x0"/></td>
                                                </tr>
                                                <tr>
                                                    <td><input type="text" name="subcontract_position[]" class="input-x0" /></td>
                                                    <td><input type="text" name="quantity[]" class="input-x0"/></td>
                                                    <td><input type="text" name="contract_amount[]" class="input-x0"/></td>
                                                </tr>
                                                <tr>
                                                    <td><input type="text" name="subcontract_position[]" class="input-x0" /></td>
                                                    <td><input type="text" name="quantity[]" class="input-x0"/></td>
                                                    <td><input type="text" name="contract_amount[]" class="input-x0"/></td>
                                                </tr>
                                                <tr>
                                                    <th colspan="2">合计</td>
                                                    <th><input type="text" name="" class="input-x0"/></td>
                                                </tr>
                                            </table>
                                            </p>
                                            <p class="indent20">
                                                附件
                                            <div class="controls" style="margin-left: 20px">
                                                <ol>
                                                    <li>分包单位资质材料 
                                                        <a href="javascript:void(0);" class="btn upBtn btn-primary" name="attachment_1" style="padding: 6px;margin: 15px;line-height: 0.7em;">上传
                                                        </a>
                                                    </li>
                                                    <li>分包单位业绩材料
                                                        <a href="javascript:void(0);" class="btn upBtn btn-primary" name="attachment_2" style="padding: 6px;margin: 31px;line-height: 0.7em;">上传
                                                        </a>
                                                    </li>
                                                    <li>分包单位专职管理人员和特种作业人员的资格证书
                                                        <a href="javascript:void(0);" class="btn upBtn btn-primary" name="attachment_3" style="padding: 6px;margin: 31px;line-height: 0.7em;">上传
                                                        </a>
                                                    </li>
                                                    <li>施工单位对分包单位的管理制度
                                                        <a href="javascript:void(0);" class="btn upBtn btn-primary" name="attachment_4" style="padding: 6px;margin: 31px;line-height: 0.7em;">上传
                                                        </a>
                                                    </li>
                                                </ol>
                                                <input type="file" id="upFile" name="upFile" style="display:none" />
                                            </div>
                                            </p>
                                            <div class="signature signaturetop0">
                                                <p>
                                                    施工项目经理部（盖章）
                                                </p>
                                                <p>
                                                    项目经理（签字)
                                                </p>

                                            </div>
                                            <p class="signature-date">
                                                <input type="text" class="js-date input-xt input-date" name="publish_time" value="<php>echo date('Y-m-d');</php>" required />
                                            </p>         
                                        </td>
                                    </tr>
                                </table>
                                <p class="text-muted tg-note">
                                    <small>注：本表一式三份，项目监理机构、建设单位、施工单位各一份。</small>
                                </p>
                                <div class="form-actions">
                                    <button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
                                    <a class="btn btn-default" href="javascript:history.back(-1);">{:L('BACK')}</a>
                                </div>
                            </form>                   
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
    <script type="text/javascript">
        $(document).ready(function (e) {
            window.obj = '';
            // 选择图片
            $(document).on("click", ".upBtn", function (e) {
                window.obj = $(this);
                $("#upFile").click();
            });
            // 文件选择器change事件
            $("#upFile").on("change", function () {
                UploadOneFile("{:U('SubcontractorQualification/upload')}", "Subcontractor_Qualification");
            });

            $(document).on("click", ".delFile", function () {
                if ($(this).attr("value") != undefined) {
                    delFile("{:U('SubcontractorQualification/delFile')}", $(this).attr("value"), $(this))
                } else {
                    $(this).closest("div").remove();
                }
            });
        });
    </script>
</body>
</html>